package com.lhc.config.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ConfigClientController
 * @Description:
 * @Author: asus
 * @CreateDate: 2020-12-30 10:05
 * @UpdateUser: asus
 * @UpdateDate: 2020-12-30 10:05
 * @UpdateRemark:
 * @Version: 1.0
 */
@RefreshScope
@RestController
@RequestMapping(value = "/configclient")
public class ConfigClientController {

    @Value("${foo}")
    String foo;

    @RequestMapping(value = "/getfoo")
    public String getfoo(){
        return foo;
    }
}
